package cn.gson.springboot.model.service;

import javax.transaction.Transactional;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.alibaba.fastjson.JSONArray;

import cn.gson.springboot.model.dao.InhospitalstorageDao;
import cn.gson.springboot.model.mapper.InhospitalstorageMapper;


@Service
@Transactional(rollbackOn=Exception.class)
public class InhospitalstorageService {
	@Autowired
	private InhospitalstorageMapper zykcmapper;
	
	@Autowired
	private InhospitalstorageDao zykcdao;
	
	//查询所有住院库存
	public JSONArray selectAllzykc() {
		return zykcmapper.selectAllzykc();
	}
	
	//查询所有药品
			public JSONArray zykcmapper(String drugname) {		
				return 	zykcmapper.selectAllzykc(drugname);
		}

}
